﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ShopNpc:Npc
    {
        public string goods { get; set; }
        public override void speak()
        {
            Console.WriteLine("name:{0} type:{1} goods:{2}", this.name,Npctype.商贩, this.goods);
        }
        public ShopNpc(string name,string goods) : base(name)
        {
            this.goods = goods;
        }
    }
}
